package com.demo.user;

import org.nature.framework.interceptor.Invocation;
import org.nature.framework.interceptor.NatureInterceptor;

public class UserInterceptor implements NatureInterceptor{

	@Override
	public void intercept(Invocation invocation) {
//		System.out.println("拦截前");
//		String name = invocation.getTargetMethod().getName();
//		System.err.println("执行："+name);
		invocation.invoke();
//		System.out.println("拦截后");
	}

	@Override
	public int level() {
		return 0;
	}

}
